gtkpopover: Set GTK grab on autohide popovers
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 20 Apr 2020 17:48:10 +0000 (19:48 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 20 Apr 2020 18:28:05 +0000 (20:28 +0200)
commitb20f21df24e7df63d43a0c7c8d70a3ad032c37fd
tree0ee7dd169213b24579759e22267987ce794155c0
parent2869f80bc00b124e5aae1b2e3b3670c71e1de9ae
gtkpopover: Set GTK grab on autohide popovers

These popovers handle clicks outside the widget, and expect input
to be routed through it when it is shown. This pretty much matches
the characteristics of GTK grabs, and setting one up will ensure
the cancellation of event controllers that were active at the time
of showing the popover.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2446
gtk/gtkpopover.c